package com.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.entity.SmsHotCommodity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface SmsHotCommodityService extends IService<SmsHotCommodity> {
    /**
     * 根据ID查询热品推荐
     * @param id
     * @return
     */
    public SmsHotCommodity getById(Integer id);

    /**
     * 查询所有热品推荐
     * @return
     */
    public List<SmsHotCommodity> getAll();

    /**
     * 根据ID删除热品推荐
     * @param id
     * @return
     */
    public boolean deleteById(Integer id);

    /**
     * 新增或修改热品推荐
     * @param smsHotCommodity
     * @return
     */
    public boolean save(SmsHotCommodity smsHotCommodity);
}
